<?php
$serverName = "localhost";
$userName = "root";
$password = "123456";
$database = "studb";
$link = mysqli_connect($serverName,$userName,$password,$database);
if (mysqli_connect_error()){
    echo "连接错误：".mysqli_connect_error();
}
//echo "连接成功";
//mysqli_set_charset($link,'utf-8');